<T:ViewBase x:Class="WPFExcelReport.TTPROUTE02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPRMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPROUTE.TPRMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPRVLO:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPROUTE.TPRVLO}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPRVLB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPROUTE.TPRVLB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPRALO:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPROUTE.TPRALO}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPRALB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPROUTE.TPRALB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPRAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPROUTE.TPRAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPRAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPROUTE.TPRAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPRAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPROUTE.TPRAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPRNEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPROUTE.TPRNEUB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPRNEUD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPROUTE.TPRNEUD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPRSTAKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPROUTE.TPRSTAKZ}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsTPROUTE,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwTPROUTE}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwTPROUTE, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="TPRMANDANT"
                                    Binding="{Binding Path=TPRMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRVLO"
                                    Binding="{Binding Path=TPRVLO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRVLO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRVLB"
                                    Binding="{Binding Path=TPRVLB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRVLB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRALO"
                                    Binding="{Binding Path=TPRALO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRALO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRALB"
                                    Binding="{Binding Path=TPRALB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRALB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRAENZL"
                                    Binding="{Binding Path=TPRAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRAENB"
                                    Binding="{Binding Path=TPRAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRAEND"
                                    Binding="{Binding Path=TPRAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRNEUB"
                                    Binding="{Binding Path=TPRNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRNEUD"
                                    Binding="{Binding Path=TPRNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRSTAKZ"
                                    Binding="{Binding Path=TPRSTAKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRSTAKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRPROC1"
                                    Binding="{Binding Path=TPRPROC1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRPROC1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRLO1"
                                    Binding="{Binding Path=TPRLO1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRLO1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRLB1"
                                    Binding="{Binding Path=TPRLB1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRLB1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRLP1"
                                    Binding="{Binding Path=TPRLP1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRLP1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRART1"
                                    Binding="{Binding Path=TPRART1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRART1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRPRIO1"
                                    Binding="{Binding Path=TPRPRIO1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRPRIO1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRARKZ1"
                                    Binding="{Binding Path=TPRARKZ1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRARKZ1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRKLAS1"
                                    Binding="{Binding Path=TPRKLAS1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRKLAS1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRPROC2"
                                    Binding="{Binding Path=TPRPROC2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRPROC2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRLO2"
                                    Binding="{Binding Path=TPRLO2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRLO2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRLB2"
                                    Binding="{Binding Path=TPRLB2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRLB2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRLP2"
                                    Binding="{Binding Path=TPRLP2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRLP2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRART2"
                                    Binding="{Binding Path=TPRART2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRART2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRPRIO2"
                                    Binding="{Binding Path=TPRPRIO2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRPRIO2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRARKZ2"
                                    Binding="{Binding Path=TPRARKZ2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRARKZ2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRKLAS2"
                                    Binding="{Binding Path=TPRKLAS2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRKLAS2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRPROC3"
                                    Binding="{Binding Path=TPRPROC3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRPROC3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRLO3"
                                    Binding="{Binding Path=TPRLO3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRLO3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRLB3"
                                    Binding="{Binding Path=TPRLB3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRLB3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRLP3"
                                    Binding="{Binding Path=TPRLP3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRLP3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRART3"
                                    Binding="{Binding Path=TPRART3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRART3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRPRIO3"
                                    Binding="{Binding Path=TPRPRIO3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRPRIO3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRARKZ3"
                                    Binding="{Binding Path=TPRARKZ3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRARKZ3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRKLAS3"
                                    Binding="{Binding Path=TPRKLAS3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRKLAS3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRPROC4"
                                    Binding="{Binding Path=TPRPROC4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRPROC4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRLO4"
                                    Binding="{Binding Path=TPRLO4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRLO4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRLB4"
                                    Binding="{Binding Path=TPRLB4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRLB4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRLP4"
                                    Binding="{Binding Path=TPRLP4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRLP4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRART4"
                                    Binding="{Binding Path=TPRART4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRART4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRPRIO4"
                                    Binding="{Binding Path=TPRPRIO4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRPRIO4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRARKZ4"
                                    Binding="{Binding Path=TPRARKZ4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRARKZ4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRKLAS4"
                                    Binding="{Binding Path=TPRKLAS4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRKLAS4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPRFILLER"
                                    Binding="{Binding Path=TPRFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPRFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
